package com.yuebao.result;

import com.yuebao.enumeration.BaseCodeEnum;
import com.yuebao.enumeration.ResponseCodeEnum;


public class BaseResponse extends AbstractResponse{
    
    private static final BaseResponse SUCCESS;
    
    public BaseResponse(BaseCodeEnum code,String message){super(code,message);}
    
    public BaseResponse(){
    
    }
    
    public static BaseResponse success(){return SUCCESS;}
    
    static {
        SUCCESS= new BaseResponse(ResponseCodeEnum.SUCCESS,"成功");
    }
    
}
